﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div id="toolBar" style="display: none;">
        <div id="toolbarAdd" style="display: none;" data-options="iconCls:'icon-table_add',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Insert(obj)">添加</div>
        <div id="toolbarEdit" style="display: none;" data-options="iconCls:'icon-table_edit',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Update(obj)">修改</div>
        <div id="toolbarDelete" style="display: none;" data-options="iconCls:'icon-table_delete',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Delete(obj)">删除</div>
        <div id="toolbarSearch" data-options="iconCls:'icon-search',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.OpenSearch(obj);">搜索</div>
        <div id="toolbarSearchtext"></div>
    </div>
    <div id="page"></div>
    <table id="dg1" style="display: none;">
        <thead>
            <tr>
                <th data-options="field: 'id',width: 150"></th>
                <th data-options="field: 'pid',width: 150"></th>
                <th data-options="field: 'grade',width: 150"></th>
                <th data-options="field: 'levels',width: 150"></th>
                <th data-options="field: 'leaf',width: 150"></th>
                <th data-options="field: 'state',width: 150"></th>
                <th data-options="field: 'disable',width: 150"></th>
                <th data-options="field: 'name',width: 150"></th>
                <th data-options="field: 'value',width: 150"></th>
                <th data-options="field: 'url',width: 150"></th>
                <th data-options="field: 'isdel_Name',width: 150"></th>
                <th data-options="field: 'adduserid_Name',width: 150"></th>
                <th data-options="field: 'lastuserid_Name',width: 150"></th>
                <th data-options="field: 'addtime',width: 150,formatter:function(val,rec){ return $.DateFormat(val, 'yyyy-MM-dd HH:mm:ss'); }"></th>
                <th data-options="field: 'lasttime',width: 150,formatter:function(val,rec){ return $.DateFormat(val, 'yyyy-MM-dd HH:mm:ss'); }"></th>

            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        var obj;
        $(function () {
            obj = {
                id: "dg1",
                key: "ID",
                url: "Api/V1/system_wechat/GetPageswechat",
                deleteUrl: "Api/V1/system_wechat/Deletewechat",
                data: {},
                filters: [],

                //title: "微信管理管理",
                dialogName: "微信管理管理",
                dialogWidth: Cookies.get('DialogWidth') + "px",
                dialogHeight: Cookies.get('DialogHeight') + "px",
                editUrl: "edit.aspx",
                detailsUrl: "details.aspx",
                toolBar: '#toolBar',
                footer: '#page',
                callback: function () { $.fn.DataGrid.onRefresh(obj); }
            };

            function InitSearchList() {
                obj.filters.push({ title: "主键", name: "min_ID", col: "ID", filter: ">=", type: "text" });
                obj.filters.push({ title: "主键", name: "max_ID", col: "ID", filter: "<=", type: "text" });

                //示例
                obj.filters.push({ title: "项目名称", name: "Name", col: "Name", filter: "like", type: "text" });
                obj.filters.push({ title: "备注", name: "remark", col: "remark", filter: "like", type: "text" });
                obj.filters.push({ title: "项目状态", name: "status", col: "status", filter: "=", type: "text" });

                obj.filters.push({ title: "修改时间", name: "min_LastTime", col: "LastTime", filter: ">=", type: "datetime" });
                obj.filters.push({ title: "修改时间", name: "max_LastTime", col: "LastTime", filter: "<=", type: "datetime" });

                obj.filters.push({ title: "创建时间", name: "min_AddTime", col: "AddTime", filter: ">=", type: "datetime" });
                obj.filters.push({ title: "创建时间", name: "max_AddTime", col: "AddTime", filter: "<=", type: "datetime" });
            }

            InitSearchList();
            $.fn.DataGrid.DataBind(obj);
        });
    </script>
</asp:Content>

